home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / TemplateMF / MkClientOs < prev    next >
Text File  |  1995-07-08  |  1KB  |  52 lines

  1.  
  2.  
  3. # Template makefile to make all .o files
  4. # for a DeskLib sublibrary. Compilation 
  5. # is for static linking with client
  6. # applications (ie not cc -zM but
  7. # _DeskLib_SDLS_CLIENT is predefined).
  8.  
  9. # The macro $(ObjectFiles) should be set at the 
  10. # start of this file, to be a space-separated
  11. # list of object files.
  12. # This is done by 'Makatic'.
  13.  
  14. # The macro $(LibName) should also be set at the 
  15. # start of this file, to be the name of the 
  16. # DeskLib sublibrary.
  17.  
  18. # Compiler flags, These can be anything. 
  19. # All essential flags (eg CC -zM
  20. # are included in the macro $(CC).
  21. #
  22. CCFlags        =    -fahi $(CCExtra) -depend !Depend -throwback -D_DeskLib_SDLS_CLIENT -D_DeskLib_$(LibName) -I,C:
  23. ASMFlags    =    -Stamp -NoCache -CloseExec -Quit $(ASMExtra)
  24.  
  25. CC        =    cc -c $(CCFlags)
  26. ASM        =    ObjAsm $(ASMFlags)
  27.  
  28.  
  29. # -------------------------------------------------------
  30. # Everything below here should probably not be changed...
  31. # -------------------------------------------------------
  32.  
  33. # Here's what we want to make...
  34. #
  35. All:    $(ObjectFiles)
  36.  
  37.  
  38. VPATH = @.^
  39.  
  40. .SUFFIXES:    .o .c .s
  41.  
  42. .c.o:
  43.     $(CC) -o $@ $<
  44.  
  45. .s.o:
  46.     $(ASM) $(ASMFlags) -from $< -to $@
  47.  
  48.  
  49.  
  50. # Dynamic dependencies:
  51.